package com.xqboss.apps.mapper.order;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xqboss.apps.domain.nft.NftDispatchRecord;
import com.xqboss.apps.enums.nft.NftDispatchSourceEnum;
import com.xqboss.apps.vo.user.UserNFTItemVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author Trent
 * @date 2023/8/29
 */
public interface NftDispatchRecordMapper extends BaseMapper<NftDispatchRecord> {

    List<UserNFTItemVo> selectByOrderMainId(@Param("source") NftDispatchSourceEnum source,
                                            @Param("orderMainId") Long orderMainId);

    List<UserNFTItemVo> selectByOrderItemId(@Param("source") NftDispatchSourceEnum source,
                                            @Param("orderItemId") Long orderItemId);

    List<UserNFTItemVo> selectByTransfer(@Param("source") NftDispatchSourceEnum source,
                                         @Param("nftNumberIds") List<Long> nftNumberIds,
                                         @Param("sourceId") Long sourceId);
}
